-- GENERATED SPELL FOR [Captured Water Spirit] --


function spell0_21029(pUnit, Event) --@Waterbolt,n/a--
pUnit:FullCastSpellOnTarget(31707,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21029', 2500, 1)
end

function Sorts_21029(pUnit, Event)
local choix_sorts_21029 = math.random(0, 0)
if choix_sorts_21029 == 0 then
pUnit:RegisterEvent('spell0_21029', 1, 1)
end
end

function mob21029_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21029', math.random(1500, 3000), 1)
end

function mob21029_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21029_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21029_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21029, 1, 'mob21029_Action')
RegisterUnitEvent(21029, 2, 'mob21029_Leave')
RegisterUnitEvent(21029, 3, 'mob21029_Kill')
RegisterUnitEvent(21029, 4, 'mob21029_Die')
